<template>
    <div>

        <el-tree :data=data :props="defaultProps" @node-click="handleNodeClick" />
    </div>
</template>

<script>
    export default {
        props:['data'],
        data(){
            return{
                //  data:[],
             defaultProps: {
            children: 'children',
                label: 'label',
            },
        }
    },
    methods:{
        handleNodeClick(data) {
            this.$emit('id',data['id'])
    },
    }
    }
</script>

<style scoped>

</style>